import { createStore } from "vuex";

export default createStore({
  state: {
    box: [
      {
        price: "2.00",
        num: 2,
        desc: "谁点谁SB",
        title: "坑钱的",
        thumb: "https://img01.yzcdn.cn/vant/ipad.jpeg",
      },
      {
        price: "2.00",
        num: 2,
        desc: "谁点谁SB",
        title: "坑钱的",
        thumb: "https://img01.yzcdn.cn/vant/ipad.jpeg",
      },
    ],
    list: [
      {
        id: "1",
        name: "张三",
        tel: "13000000000",
        address: "浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室",
        isDefault: true,
      },
      {
        id: "2",
        name: "李四",
        tel: "1310000000",
        address: "浙江省杭州市拱墅区莫干山路 50 号",
      },
    ],
  },
  mutations: {
    cityList(state,cityList){
      console.log(cityList);
      state.list=cityList;
    }
  },
  actions: {},
  modules: {},
});
